﻿With the partfrac((3*x+1)/(x^2+4*x+3), x) command, the fractions are calculated according to the degree of the denominator, resulting in 4/(x+3)-1/(x+1)